﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;

namespace RN.ERP.Entity
{
    /// <summary>
    /// 管理目录 - 部门
    /// </summary>
    public class MDDepartment
    {
        /// <summary>
        /// 部门代码
        /// </summary>
        [Key]
        public Guid UnitID { get; set; }
        /// <summary>
        /// 排列顺序
        /// </summary>
        public Int32 SeqNo { get; set; }
        /// <summary>
        /// 部门名称
        /// </summary>
        public String UnitName { get; set; }
        /// <summary>
        /// 简称
        /// </summary>
        public String UnitShort { get; set; }
        /// <summary>
        /// 说明
        /// </summary>
        public String Description { get; set; }
        /// <summary>
        /// 上级部门代码
        /// </summary>
        public Guid UnitParent { get; set; }
        /// <summary>
        /// 本级顺序
        /// </summary>
        public Int16 PartChild { get; set; }
        /// <summary>
        /// 级别
        /// </summary>
        public Byte UnitLevel { get; set; }
        /// <summary>
        /// 本部门用户数
        /// </summary>
        public Int16 UserNumber { get; set; }
        public Int16 StationNumber { get; set; }
        /// <summary>
        /// 直接下级部门数量
        /// </summary>
        public Int16 ChildNumber { get; set; }
        public Boolean InUse { get; set; }
        public String Email { get; set; }
        [Timestamp]
        public Byte[] RowVer { get; set; }
    }
}
